<?php
/**
 * Created by PhpStorm.
 * User: liu
 * Date: 2018/9/12
 * Time: 0:00
 */

namespace app\blog\controller;


use app\blog\model\Comment;
use app\helper\Response;
use think\Controller;

class Comments extends Controller
{
    public function add(){
        $r=Comment::add(input());
        if($r===true){
            return Response::returnMsg('',0,'留言成功');
        }
        return Response::returnMsg('',1,$r);
    }
}